package com.sky.web.data2.menu.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sky.web.data2.menu.dao.MenuDao;
import com.sky.web.data2.menu.entity.Menu;
import com.sky.web.data2.menu.service.MenuService;

@Service
public class MenuServiceImpl implements MenuService{
	@Autowired
	private MenuDao menuDao;
	
	@Override
	public List<Menu> getMenus(Menu menu) {
		return menuDao.getMenus(menu);
	}
	
	@Override
	public void addMenu(Menu menu) {
		menuDao.addMenu(menu);
	}

}
